<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Store Edit</title>
        <LINK REL=StyleSheet HREF="<?php echo base_url().'/css/mockup.css';?>"/>
    </head>
    <body>
        <h1>Edit Store</h1>
        <?php echo form_open('client_controller/store_edit', array('id' => 'store_edit'));  echo form_hidden('id', $data['id']);?>
        <table align="center" cellspacing="10" cellpadding="0" width="900">
            <?php if (isset($status)) { if ($status === 'error') { ?>
                <tr>
                    <td colspan="2" align="center"><span style="color: red"><?php echo $message ?></span></td>
                </tr>
            <?php }} ?>
            <tr>
                <td>
                    Name:
                </td>
                <td>
                    <input type="text" name="name" value="<?php echo $data['name']; ?>" maxlength="30" tabindex="1" />
                    <span style="color: red"><?php echo form_error('name'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Motto:
                </td>
                <td>
                    <input type="text" name="motto" value="<?php echo $data['motto']; ?>" maxlength="30" tabindex="2" />
                    <span style="color: red"><?php echo form_error('motto'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Primary Telephone:
                </td>
                <td>
                    <input type="text" name="primary_telephone" value="<?php echo $data['primary_telephone']; ?>" maxlength="30" tabindex="3" />
                    <span style="color: red"><?php echo form_error('primary_telephone'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Province:
                </td>
                <td>
                    <input type="text" name="province" value="<?php echo $data['province']; ?>" maxlength="30" tabindex="4" />
                    <span style="color: red"><?php echo form_error('province'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Canton:
                </td>
                <td>
                    <input type="text" name="canton" value="<?php echo $data['canton']; ?>" maxlength="30" tabindex="5" />
                    <span style="color: red"><?php echo form_error('canton'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    District:
                </td>
                <td>
                    <input type="text" name="district" value="<?php echo $data['district']; ?>" maxlength="30" tabindex="6" />
                    <span style="color: red"><?php echo form_error('district'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Address Line 1:
                </td>
                <td>
                    <input type="text" name="address_line_1" value="<?php echo $data['address_line_1']; ?>" maxlength="90" tabindex="7" />
                    <span style="color: red"><?php echo form_error('address_line_1'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Address Line 2:
                </td>
                <td>
                    <input type="text" name="address_line_2" value="<?php echo $data['address_line_2']; ?>" maxlength="90" tabindex="8" />
                    <span style="color: red"><?php echo form_error('address_line_2'); ?></span>
                </td>
            </tr>
            <tr>
                <td>
                    Schedule:
                </td>
                <td>
                    <input type="text" name="schedule" value="<?php echo set_value('schedule'); ?>" maxlength="90" tabindex="9" />
                    <span style="color: red"><?php echo form_error('schedule'); ?></span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" name="submit" value="Submit" tabindex="10" />
                </td>
            </tr>
            <tr>
                <td>
                    <h2><a href="<?php echo site_url().'/client_controller/dashboard';?>">To Dashboard...</a></h2>
                </td>
            </tr>
        </table>
        <?php echo form_close() ?>
    </body>
</html>
